<template>
  <div class="tootip">
    <el-row>
      <el-tooltip content="Top center" placement="top">
        <el-button>Dark</el-button>
      </el-tooltip>
      <el-tooltip content="Bottom center" placement="bottom" effect="light">
        <el-button>Light</el-button>
      </el-tooltip>
    </el-row>
    <hr>
    <el-row>
      <el-tooltip :disabled="disabled" content="点击关闭 tooltip 功能" placement="bottom" effect="light">
        <el-button @click="disabled = !disabled">点击{{ disabled ? '开启' : '关闭' }} tooltip功能</el-button>
      </el-tooltip>
    </el-row>
  </div>
</template>

<script>
export default {
  data () {
    return {
      disabled: false
    }
  }
}
</script>
